<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);

String outPatientVisitInfoJson= (String)request.getAttribute("outPatientVisitInfoJson");
String success= (String)request.getAttribute("success");
%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
	<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<div class="list_NR">
	<div class="loc">
		<h3>统计报告</h3>
		<ul class="loc_loc">重点手术
		</ul>
	</div>

	<div class="list_con_table">
	
	<form action=""
	method="post" id="bedRateUserForm">
<input type="hidden" id="month" name="month" value="${month}">
<table cellpadding="0" cellspacing="0" id="table">
<tbody>
	<tr>
		
		<td colspan="6" style="text-align:right;">
		    <input type="button" value="保存" class="btn"  onclick="saveMajor20OperationInfo()">
		    <!-- <input type="button" value="导出" class="btn"  onclick="exportBedIndexInfo()"> -->
		</td>
	</tr>
			
			<tr>
			   <td class="tdLabel_7" style="width:10%">重点手术内容</td>
				
			
				<td class="tdLabel_8" colspan="7">
					<textarea style="width:99%;height:150px" name="note">${major20OperationInfo.text}</textarea>
				</td>
			</tr>
			
			<tr>
			   <td class="tdLabel_7" style="width:10%">重点手术说明</td>
				<td class="tdLabel_8" colspan="7">
					<textarea style="width:99%;height:120px" id="note">${major20OperationInfo.note}</textarea>
				</td>
			</tr>
			
			<tr>
			 
				
			
				<td class="tdLabel_8" colspan="7" style="width:780px">
					<div style="height:auto;">
							<table class="Search_tableList" style="margin:0 auto;" id="diseaseDiagTable" cellpadding="0" cellspacing="0">
		
							<thead>
							<tr>
								<td colspan="9" style="text-align:center;font-size:16px;">
									20种重点手术相关指标
								</td>
							</tr>
				
							<tr>
								<td class="tdLabel_4" style="width:20%">病种</td>
								<td class="tdLabel_4" style="width:10%">手术人次</td> 
								<td class="tdLabel_4" style="width:10%">住院死亡人数</td>
								<td class="tdLabel_4" style="width:10%">病死率（%）</td>
								<td class="tdLabel_4" style="width:10%">非医嘱离院人数</td> 
								<td class="tdLabel_4" style="width:10%">平均住院日（天）</td>
								<td class="tdLabel_4" style="width:10%">平均住院费用（元）</td> 
								<td class="tdLabel_4" style="width:10%">术后48 小时（ 2 天）再次手术</td>
								<td class="tdLabel_4" style="width:10%">术后3-31 天再次手术人数</td>
								
							</tr>
							
				
							</thead>
							<tbody >
				              <c:forEach var="record"   items="${major20OperationInfo.list}">
								<tr>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.speciesN}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.surgicalN}' /></td> 
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.deathSurgicalN}' /></td> 
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.deathRate}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.nonDDN}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.averageStay}' /></td> 
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.costPer}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.uPlanReturn2}' /></td>
								<td class="tdLabel_8"><input class="input_box" type="text" style="width:95%" value='${record.uPlanReturn3}' /></td>
					           </tr>
                              </c:forEach>
							</tbody>
							</table>
						</div>
				</td>
			</tr>
			
			
			
		
			

		
		</tbody>
</table>
	

</form>

</div>
</div>
	





<script>
  //保存
     function saveMajor20OperationInfo(){
	    var note = $("#note").val();
		$.ajax({
		    type:"post",
		    data:{note:note},
		    url:"${basePath}/report/saveMajor20OperationInfo",
		    success:function(data){
		    	layer.alert(data.msg,{icon:1});
		    }
		})

     }
     


function exportBedIndexInfo(){
	var month = $("#month").val();
	window.location.href="${basePath}/report/exportBedIndexInfoWord?month="+month;
}


</script>